<!-- Голосование -->
<h2 class="header-">
	{{?!community}}<a href="{{/}}{{*community.url}}" class="s0-link">{{*community.title}}</a> &rarr; {{/?}}
	{{?*section.title && !tag_sections.single}}<a href="{{/}}{{*community.url}}/{{*section.url}}/showfeed" class="s{{*section.color}}-link">{{*section.title}}</a> &rarr; {{/?}}<a href="{{/}}{{*community.url}}/{{*post.oid}}{{?*post.go2comment}}?showcomments&parent_oid={{*post.go2comment}}&offset=1#comments{{/?}}">{{*post.title}}</a></h2>
{{@feed.html:userbarpost}}


<div class="content- content doctype-vote-content">
	<p>{{*post.question}}</p>
	{{?*already_voted || !*can_vote}}
	<p>Проголосовал <strong>{{*post.overall_voters}}</strong> {{!splural *post.overall_voters "человек" "" "а" "" sep=" "}}.{{?*vote_closed}} Голосование закрыто.{{/?}}</p>
	{{/?}}
</div>
{{?*already_voted || !*can_vote || *vote_closed}}
<div class="doctype-vote-answers">
{{!for *post.answers do=@:answer}}{{:answer}}
	<div class="answer-">
		<div class="bar-"><div class="barscale-" style="width: {{!eval (*voters * 100 / *post.max_voters) }}px;"></div></div>
		{{*text}} <span class="count-">— {{*voters}}</span>
	</div>
{{/:answer}}
	<form action="{{*vote_url|safe}}" method="POST">
		<ul class="buttons-">
			{{?*can_close}}
			<li><input type="image" src="{{!static type='images' 'vote-button-close.gif'}}" name="vote_close_button" alt="Завершить" value="vote_close_button" class="submit-" /></li>
			{{/?}}
			{{?*can_open}}
			<li><input type="submit" value="vote_open_button" name="vote_open_button" class="submit-" /></li>
			{{/?}}
		</ul>
	</form>
</div>
{{?:!*vote_closed && *can_vote}}
{{@:vote_form}}{{:vote_form}}
<div class="doctype-vote-form"><div class="bg1-"><div class="bg2-"><div class="bg3-">
	<p class="subtitle-">А как думаете вы?</p>
	<form action="{{*vote_url|safe}}" method="POST">
		<div class="vlist-">
		{{!for *post.answers as='variant' do=@:answer_form}}{{:answer_form}}
			<fieldset class="vitem-"><input type="radio" value="{{variant.num}}" name="vote_variant" id="{{*post.oid}}-{{variant.num}}"/> <label for="{{*post.oid}}-{{variant.num}}">{{variant.text}}</label></fieldset>
		{{/:answer_form}}
		</div>
		<ul class="buttons-">
			<li><input type="image" src="{{!static type='images' 'vote-button.gif'}}" name="vote_button" alt="Голосовать" value="vote_button" class="submit-" /></li>
			{{?*can_close}}
			<li><input type="image" src="{{!static type='images' 'vote-button-close.gif'}}" name="vote_close_button" alt="Завершить" value="vote_close_button" class="submit-" /></li>
			{{?:*can_open}}
			<li><input type="submit" value="vote_open_button" name="vote_open_button" class="submit-" /></li>
			{{/?}}
		</ul>
	</form>
</div></div></div></div>
{{/:vote_form}}
{{/?}}
